package com.gray.dto;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.gray.pojo.ArticleSort;
import com.gray.pojo.Section;
import com.gray.pojo.User;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) //在需要序列化为json输出的类上  ：返回json数据给前台的时候 如果值为null则不返回给字段给前台(节约流量)
public class ArticleDto {
	private Short articleId;

    private String articleName;

    private Date articleTime;

    private String articleIp;

    private Integer articleClick;

    private ArticleSort articleSort;

    private User user;

    private Section section; //栏目id

    private Integer articleType; //文章的模式  是否公开

    private Byte articleUp;

    private Byte articleSupport;

    private String articleContent;
    
    private String articleCover ;//文章封面

	public String getArticleCover() {
		return articleCover;
	}

	public void setArticleCover(String articleCover) {
		this.articleCover = articleCover;
	}

	public Short getArticleId() {
		return articleId;
	}

	public void setArticleId(Short articleId) {
		this.articleId = articleId;
	}

	public String getArticleName() {
		return articleName;
	}

	public void setArticleName(String articleName) {
		this.articleName = articleName;
	}

	public Date getArticleTime() {
		return articleTime;
	}

	public void setArticleTime(Date articleTime) {
		this.articleTime = articleTime;
	}

	public String getArticleIp() {
		return articleIp;
	}

	public void setArticleIp(String articleIp) {
		this.articleIp = articleIp;
	}

	public Integer getArticleClick() {
		return articleClick;
	}

	public void setArticleClick(Integer articleClick) {
		this.articleClick = articleClick;
	}

	public ArticleSort getArticleSort() {
		return articleSort;
	}

	public void setArticleSort(ArticleSort articleSort) {
		this.articleSort = articleSort;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	

	public Section getSection() {
		return section;
	}

	public void setSection(Section section) {
		this.section = section;
	}

	public Integer getArticleType() {
		return articleType;
	}

	public void setArticleType(Integer articleType) {
		this.articleType = articleType;
	}

	public Byte getArticleUp() {
		return articleUp;
	}

	public void setArticleUp(Byte articleUp) {
		this.articleUp = articleUp;
	}

	public Byte getArticleSupport() {
		return articleSupport;
	}

	public void setArticleSupport(Byte articleSupport) {
		this.articleSupport = articleSupport;
	}

	public String getArticleContent() {
		return articleContent;
	}

	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}
    
    
}
